package com.example.zhu.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class CouponVO {

    //主键id
    private Integer id;

    //优惠券数量
    private String name;

    //满减条件
    private String condition;

    //卡有效开始时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startAt;

    //卡失效日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endAt;

    //描述信息
    private String description;

    //折扣券优惠金额
    private Integer value;

    //折扣券优惠金额文案
    private String valueDesc;


}
